package com.paypalpay.mapper;


import com.paypalpay.entity.common.DevicePackageCoverPicture;
import com.paypalpay.entity.common.DevicePackageMarketingStrategy;
import com.paypalpay.entity.common.InternationalPayPackage;
import com.paypalpay.entity.common.PartnerProductPackage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InternationalPayPackageMapper {

    public int findPackageExistOrNot(@Param("packageCode") String packageCode, @Param("partnerCode")String partnerCode);

    public List<InternationalPayPackage> queryPackages(@Param("partnerCode")String partnerCode,@Param("deviceId")String deviceId);
    //public List<InternationalPayPackage> queryPackages();

    public List<DevicePackageCoverPicture> queryPictureInfo(@Param("packageCode") String packageCode, @Param("partnerCode")String partnerCode);
   //public List<DevicePackageCoverPicture> queryPictureInfo(String coverCountryCode);

   public List<DevicePackageMarketingStrategy> queryDeviceStrategy(@Param("packageCode") String packageCode, @Param("partnerCode")String partnerCode);
    //public List<DevicePackageMarketingStrategy> queryDeviceStrategy(String packageCode);

    public List<InternationalPayPackage> queryPackagesByMcc(@Param("coverCountryMcc")String mccRequest,@Param("partnerCode")String partnerCode);
   // public List<InternationalPayPackage> queryPackagesByMcc(String mccRequest);

    //根据code去数据库取name
    public String getPackageNameBypackageCode(@Param("packageCode") String packageCode, @Param("partnerCode")String partnerCode);


    public String queryContinent(String mccs);

    public String queryCountry(String mccs);

    public String queryPartnerNameBypartnerCode(String partnerCode);

    public int findPictureExistOrNot(@Param("packageCode") String packageCode, @Param("partnerCode")String partnerCode);

    public void storagePicture(DevicePackageCoverPicture picture);

    public void bak_storagePackage(InternationalPayPackage payPackage);

    public void bak_storageRefuelingPackage(InternationalPayPackage payPackage);

    public void storagePackage(PartnerProductPackage productPackage);

    public void storageRefuelingPackage(PartnerProductPackage productPackage);

    public String queryPackageName(@Param("packageName") String packageName, @Param("partnerCode") String partnerCode);

    public String getPackageTypeByCode(@Param("packageCode")String packageCode, @Param("partnerCode") String partnerCode);

    public String getPackageAmountBypackageCode(@Param("packageCode")String packageCode, @Param("partnerCode") String partnerCode);
}
